package com.sani.study2025.enums;

public enum Level implements BaseEnum<Level> {

    LEVEL_1(1, "一级"),
    LEVEL_2(2, "二级"),
    LEVEL_3(3, "三级"),
    ;

    private Integer code;

    private String desc;

    Level(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public Level codeOf(int code) {
        return null;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }
}
